<div id="members_left">
    <div id="bandeau">
            <span class="subtitle grey">
                D&eacute;couvrez en <a href="#facon_originale">bas de page</a> une fa&ccedil;on originale de rencontrer les membres!
            </span>
    </div>
<div id="wall">
	<div class="box620top"></div>
	<div class="box620content">
		<div class="result">
			{ if isset($search) }
				<div class="text">
					{$nb_result}
					r&eacute;sultat{ if $nb_result > 1 }s{/if} pour
					<span class="orange bold">{$search}</span>
				</div>
                {if isset($smarty.get.typ)}
                    <div class="add" id="profil_ajout">
                        {include file="members/addtomyprofile.tpl"}
                    </div>
                {/if}
                {if $nb_result == 0 }
                    <div class="no-result">
                        <img src="{$URL_PATH}images/rechercheInfructueuse.jpg" /><br />
                        <span class="grey">Aucun membre ne correspond &agrave; votre recherche.</span>
                    </div>
                {/if}
			{/if}
        </div>
        <div class="pager">
            {if $nb_page > 1}
               {section name=k loop=$nb_page}
                   {if $current_page == $smarty.section.k.iteration}<span class="pageron"> {/if}
                   { if isset($current_search) }
                      <a href="{$URL_PATH}membres/recherche/{$current_search}/page-{$smarty.section.k.iteration}/">
                   { elseif isset($search) }
                      <a href="{$URL_PATH}membres/recherche={$search}/page-{$smarty.section.k.iteration}/">
                   { elseif isset($smarty.session.search) }
                      <a href="{$URL_PATH}membres/recherche/page-{$smarty.section.k.iteration}/">
                   {else}
                      <a href="{$URL_PATH}membres/page-{$smarty.section.k.iteration}/">
                   {/if}                   
                   {$smarty.section.k.iteration}                   
                      </a>
                {if $current_page == $smarty.section.k.iteration}</span>{/if}
                {/section}
                {if ($current_page<$nb_page && $nb_page>1) }
                    <a href="{$URL_PATH}membres/page-{$current_page+1}/">
                       <img src="{$IMG_PATH}icones/fleche_next.png" alt="Page suivante" />
                    </a>
                {/if}
            {/if}
        </div>
        <div class="listing">
            <div class="line">
                {foreach from=$liste_users key=user item=key name=i}
                   <div class="box">
                        <div class="iduser hidden">{$key.id}</div>
                        {if $key.allowclick==true}
                            <a href="{$key.lien}">
                        {/if}
                        <img src="{$key.mini}"/>
                        {if $key.allowclick==true}
                            </a>
                        {/if}
                   </div>
                   {if $smarty.foreach.i.iteration % $nb_row == 0}
                        </div><div class="line">
                   {/if}
                {/foreach}
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="box620ass"></div>
    <div id="search_member">
        <div class="box620top"></div>
        <div class="box620content">
            <div class="left">
                <form action="{$URL_PATH}membres/recherche/" method="post">
                    <div class="champ">
                        <input type="text" name="search" value="{$smarty.post.search}" size="25" class="input-medium">
                    </div>
                    <div class="bouton">
                        <input type="submit" class="search-submit" value="Rechercher" name="send-rech" />
                    </div>
                </form>
			</div>
            <div class="right">
				<form action="{$URL_PATH}membres/recherche/" method="post">
					{if isset($smarty.session.user)}
                        <div class="line">
							<div class="label">Afficher :</div>
							<div class="champ">
								<select name="aff">
									<option value="0" {if $smarty.post.aff==0}selected{/if}>Tous les membres</option>
									<option value="1" {if $smarty.post.aff==1}selected{/if}>Mes amis</option>
									<option value="2" {if $smarty.post.aff==3}selected{/if}>Les amis de mes amis</option>
								</select>
							</div>
							<div class="clear"></div>
						</div>
                     {/if}
						<div class="line">
							<div class="labelinput">Age :</div>
							<div class="minichamp">
								<input type="text" name="age_mini" value="{$smarty.post.age_mini}" size="1" class="input-small">
							</div>
							<div class="minilabelinput">min</div>
							<div class="minichamp">
								<input type="text" name="age_maxi" value="{$smarty.post.age_maxi}" size="1" class="input-small">
							</div>
							<div class="minilabelinput">max</div>
							<div class="clear"></div>
						</div>
						<div class="line">
							<div class="label">Sexe :</div>
							<div class="champ">
								<select name="sexe">
									<option value="0" {if $smarty.post.sexe==0}selected{/if}>Tous</option>
									<option value="1" {if $smarty.post.sexe==1}selected{/if}>Femme</option>
									<option value="2" {if $smarty.post.sexe==2}selected{/if}>Homme</option>
								</select>
							</div>
							<div class="clear"></div>
						</div>
						<div class="line">
							<div class="labelinput">Ville :</div>
							<div class="champinput">
								<input type="text" name="ville" value="{$smarty.post.ville}" class="input-medium">
							</div>
							<div class="clear"></div>
						</div>
						<div class="line">
							<div class="label">
								Pays :
							</div>
							<div class="champ">
								<select id="selectcountry" name="country">
                                    <option value="0" {if $smarty.post.country==0}selected{/if}>Tous les pays</option>
                                    {foreach from=$liste_countries key=country item=key name=i}
                                        <option value="{$key.id}" {if $smarty.post.country==$key.id}selected{/if}>{$key.fr}</option>
                                    {/foreach}
                                </select>
							</div>
							<div class="clear"></div>
						</div>
						<div class="line">
							<div class="label">Association soutenue :</div>
							<div class="champ">
								<select id="selectassoc" name="assoc">
                                    <option value="0" {if $smarty.post.assoc==0}selected{/if}>Toutes les associations</option>
                                    {foreach from=$liste_assocs key=assoc item=key name=i}
                                        <option value="{$key.id}" {if $smarty.post.assoc==$key.id}selected{/if}>{$key.nom}</option>
                                    {/foreach}
                                </select>
							</div>
							<div class="clear"></div>
						</div>
						<div class="line">
							<div class="label">
								<input type="checkbox" {if $smarty.post.avec_photo=='on'}'checked="checked"';{/if} name="avec_photo">
							</div>
							<div class="champ">Membres avec photo uniquement</div>
							<div class="clear"></div>
						</div>
						<div class="line">
							<div class="label">
								<input type="checkbox" name="en_ligne">
							</div>
							<div class="champ">Membres en ligne uniquement</div>
							<div class="clear"></div>
						</div>
						<div class="line-button">
							<div class="champ">
								<input type="submit" class="search-submit" value="Afficher" name="send-list" />
							</div>
							<div class="divers">
								<a href="/membres/">Nouvelle recherche</a>
							</div>
							<div class="clear"></div>
						</div>
				</form>
            </div>
            <div class="clear"></div>
        </div>
        <div class="box620ass"></div>

		<div class="bloc">
			<div class="mainTitle"><a name="facon_originale" ></a>
				Rencontrer les membres en fonction des r&eacute;ponses suivantes :
			</div>
		</div>
		<div class="bloc">
			<div class="title">Citations</div>
            {foreach from=$liste_quotes key=quote item=key name=i}
					<div class="cit">
						<a href="{$URL_PATH}membres/recherche/citation={$key.id}/">
							{$key.nom}
						</a>
					</div>
			{/foreach}
			<div class="plus"><a href="{$URL_PATH}membres/recherche/nuage=citation/">Plus de citations...</a></div>
		</div>

        <div class="separator610"></div>

        <div class="bloc">
				<div class="title">Principal trait de caract&egrave;re</div>
				{foreach from=$liste_characters key=character item=key name=i}
					<div class="tagcloud">
						<a href="{$URL_PATH}membres/recherche/caractere={$key.id}/">
							<span class="item{$key.tagfontsize}" >
								{$key.nom}
							</span>
						</a>
					</div>
				{/foreach}
				<div class="plus"><a href="{$URL_PATH}membres/recherche/nuage=caractere/">Plus de caract&egrave;res...</a></div>
		</div>

        <div class="separator610"></div>

		<div class="bloc">
				<div class="title">Ne peut vivre sans</div>
				{foreach from=$liste_indispensables key=indispensable item=key name=i}
					<div class="tagcloud">
						<a href="{$URL_PATH}membres/recherche/indispensable={$key.id}/">
							<span class="item{$key.tagfontsize}" >
								{$key.nom}
							</span>
						</a>
					</div>
				{/foreach}
				<div class="plus"><a href="{$URL_PATH}membres/recherche/nuage=indispensable/">Plus de r&eacute;ponses...</a></div>
		</div>

        <div class="separator610"></div>

		<div class="bloc">
				<div class="title">Rencontrer les membres en fonction d'autres r&eacute;ponses :</div>
				<div class="col">
					<a href="{$URL_PATH}membres/recherche/nuage=animal/">Animal</a><br />
					<a href="{$URL_PATH}membres/recherche/nuage=cause/">Cause</a><br />
					<a href="{$URL_PATH}membres/recherche/nuage=hobbie/">Centre d'int&eacute;r&ecirc;t</a><br />
					<a href="{$URL_PATH}membres/recherche/nuage=endroit/">Endroit</a><br />
					<a href="{$URL_PATH}membres/recherche/nuage=film/">Film</a><br />
				</div>
				<div class="col">
					<a href="{$URL_PATH}membres/recherche/nuage=job/">Job</a><br />
					<a href="{$URL_PATH}membres/recherche/nuage=langue/">Langue</a><br />
					<a href="{$URL_PATH}membres/recherche/nuage=livre/">Livre</a><br />
					<a href="{$URL_PATH}membres/recherche/nuage=deplacement/">Moyen de transport</a><br />
					<a href="{$URL_PATH}membres/recherche/nuage=personnalite/">Personnalit&eacute; pr&eacute;f&eacute;r&eacute;e</a><br />
				</div>
				<div class="col">
					<a href="{$URL_PATH}membres/recherche/nuage=site/">Site web</a><br />
					<a href="{$URL_PATH}membres/recherche/nuage=musique/">Style de musique</a><br />
					<a href="{$URL_PATH}membres/recherche/nuage=seek/">Sur e-Citizen pour...</a><br />
					<a href="{$URL_PATH}membres/recherche/nuage=regime/">R&eacute;gime alimentaire</a><br />
				</div>
				<div class="col">
				</div>
		</div>
		<div class="clear"></div>
	</div>
  </div>
</div>
<div id="members_right">
    <div id="selected" class="selected">
            {include file="members/more_answers.tpl"}
    </div>
    <!-- campagnes de pub -->
    {if isset($pub) && $pub|@sizeof>0}
        {include file='boxes/pub.tpl'}
        <div class="clear"></div>
    {/if}
</div>